$(document).ready(function(){$(".search-results > li").hover(function(){var li=$(this);
if(!li.hasClass("results-header")&&!li.hasClass("results-footer")){li.addClass("hover");
}},function(){$(this).removeClass("hover");
});
$("input.chkJobBox").click(function(){var checkbox=$(this);
if(checkbox.attr("checked")){checkbox.parent().addClass("selected");
}else{checkbox.parent().removeClass("selected");
}var n=$("input.chkJobBox:checked").length;
$("span.selected-jobs").text(n+(n==1?" job":" jobs")+" selected");
});
$("#DateNavigator").change(function(){var that=$(this);
document.location=that.val();
});
$("#SortMode").change(function(){var that=$(this);
document.location=that.val();
});
$(".more").click(function(e){var dl=$(this).parent();
var a=$(this).find("a");
var dd=$(dl).children("dd.less");
$(dd).toggle();
if($(a).html()=="more"){$(a).html("less");
}else{$(a).html("more");
}e.stopPropagation();
e.preventDefault();
return false;
});
});
SEEK.JobDetailsMetrics={};
SEEK.JobDetailsMetrics.JobApply={pageName:"jobs:job application",channel:"jobs",prop4:"application",prop7:"job application",prop8:"jobs:application",eVar40:"",events:"event5"};
SEEK.JobDetailsMetrics.EOIApply={pageName:"jobs:express interest",channel:"jobs",prop4:"express interest",prop7:"express interest",prop8:"jobs:express interest",eVar40:"",events:"event5"};
var popUpWin=null;
var intervalId=null;
function postToController(btn,url,postUrl,jobId,seekerId){$(btn).hide();
$.post(postUrl,{jobId:jobId,seekerId:seekerId},function(data,textStatus){if(eval(data).succeeded){window.location=url;
}});
}function hideApplyButton(btn,screenMsg,url){$(screenMsg).fadeIn();
$(btn).hide();
popUpWindow(btn,screenMsg,url);
}function popUpWindow(btn,screenMsg,url){var width=640;
var height=640;
var xPos=((screen.availHeight/2)-320);
var yPos=((screen.availWidth/2)-320);
removePopupWindow();
popUpWin=open(url,"popUpWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width="+width+",height="+height+",left="+yPos+", top="+xPos+",screenX="+yPos+",screenY="+xPos+"");
intervalId=window.setInterval(function(){checkLinkoutWindow(btn,screenMsg);
},500);
}function removePopupWindow(){if(popUpWin!=null&&popUpWin.closed!=null){try{popUpWin.close();
}catch(e){if(!popUpWin.closed){popUpWin.close();
}}}}function checkLinkoutWindow(btn,screenMsg){try{if(popUpWin!=null&&popUpWin.closed){if(intervalId!=null){$(screenMsg).fadeOut();
$(btn).show();
window.clearInterval(intervalId);
intervalId=null;
}popUpWin=null;
}}catch(e){}}
